{/* LAYOUT模板 */}
	<layout name="layout"/>
{/* LAYOUT模板 */}

{/* import Js,Css */}
	<js href="__PUBLIC__/js/admin/listTable.js"/>
	<js href="__PUBLIC__/js/admin/js.util.js"/>
	<css href="__PUBLIC__/css/admin/common.css"/>
	<js href="__PUBLIC__/js/admin/js.selectzone.js"/>
	
	<css href="__PUBLIC__/css/jquery-ui.css" />
	<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
	<js href="__PUBLIC__/js/core/plugins.js"/>
{/* import js,css */}

<!-- [position] -->
	<include file="Template:position"/>
<!-- [position] -->
<!-- [filter_booking] -->
	<include file="Library:filter_booking"/>
<!-- [filter_booking] -->

<form method="POST" action="" name="listForm">
	<div class="list-div" id="listDiv">
		<table class="table" cellpadding="3" cellspacing="1" width="100%">
			<tr>
				<th><a href="javascript:listTable.sort('rec_id'); ">编号</a>{$sort_rec_id}</th>
				<th><a href="javascript:listTable.sort('link_man'); ">联系人</a>{$sort_link_man}</th>
				<th><a href="javascript:listTable.sort('goods_name'); ">缺货商品名</a>{$sort_goods_name}</th>
				<th><a href="javascript:listTable.sort('goods_number'); ">数量</a>{$sort_goods_number}</th>
				<th><a href="javascript:listTable.sort('booking_time'); ">登记时间</a>{$sort_booking_time}</th>
				<th><a href="javascript:listTable.sort('is_dispose'); ">是否已处理</a>{$sort_is_dispose}</th>
				<th>操作</th>
			</tr>
			<volist name="bookingList" id="booking">
			<tr>
			<td>{$booking.rec_id}</td>
			<td>{$booking.link_man}</td>
			<td>
				<a href="../goods.php?id={$booking.goods_id}" target="_blank" title="{$lang.view}">{$booking.goods_name}</a>
			</td>
			<td align="left">{$booking.goods_number}</td>
			<td align="left">{$booking.booking_time}</td>
			<td align="left">
				<if condition="$booking['is_dispose'] eq 1">
					<img src="__PUBLIC__/image/admin/yes.gif" />
				<else/>
					<img src="__PUBLIC__/image/admin/no.gif" />
				</if>
			</td>
			<td align="left">
				<a href="__URL__/booking_info?id={$booking.rec_id}" title="{$lang.detail}">
					<img src="__PUBLIC__/image/admin/icon_view.gif" border="0" height="16" width="16" />
				</a>
				<a href="javascript:;" 
				   onclick="listTable.remove({$booking.rec_id},'确定删除')" 
				   title="移除">
					<img src="__PUBLIC__/image/admin/icon_drop.gif" border="0" height="16" width="16" />
				</a>
			</td>
			</tr>	
			</volist>
		</table>
		<include file="Library:paginator"/>
	</div>
</form>

<script type="text/javascript" language="JavaScript">
  /**
   * 搜索标题
   */
	function searchGoodsname(){
		var keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
		listTable.filter['keywords'] = keyword;
		listTable.filter['page'] = 1;
		listTable.loadList("get_bookinglist");
	}
</script>



